package com.xy.tianyu.module.picture.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

/**
 * @time 2020/10/14 10:15
 * @class 描述:
 */
class PicHotDayDetailPagerAdapter(fm: FragmentManager,var fragmentList:List<Fragment>) :
    FragmentStatePagerAdapter(fm,
        BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT
    ) {
    override fun getItem(position: Int): Fragment {
        return fragmentList[position]
    }

    override fun getCount(): Int {
        return fragmentList.size
    }
}